class ren:
    def __init__(self,name,age,huafei,sjpp,dcrl,pmdx,djsj,jf):
        self.name = name
        self.age = age
        self.huafei = huafei
        self.sjpp = sjpp
        self.dcrl = dcrl
        self.pmdx = pmdx
        self.djsj = djsj
        self.jf = jf
    def fdx(self,fff):
        print(f"{self.name}给我发短信，内容如下：{fff}")
    def ddh(self,who,sj,):
        if who not in dhhm :
            print("电话是空号")
        elif self.huafei < 1:
                print("话费不够")
        else:print("打通了")
        if 0 < sj < 10:
                self.huafei = self.huafei - sj
                self.jf = self.jf + 15 * sj
        elif 10 < sj < 20:
                self.huafei = self.huafei - 0.8 * sj
                self.jf = self.jf + 39 * sj
        else:
                self.huafei = self.huafei - 0.65 * sj
                self.jf = self.jf + 48 * sj
        print('剩余话费：', self.huafei, '积分：', self.jf)
dhhm = (110,119)
ren = ren ("赵云",18,199,"小米",10,10,12,15)
ren.fdx('今天下雨了')
ren.ddh(110,50)